﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SeaBattle.Domain.Entities
{
    /// <summary>
    /// Class ShipParts
    /// </summary>
    public class ShipPart
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ShipPart"/> class.
        /// </summary>
        public ShipPart(Ship ship, bool alive = true)
        {
            this.Ship = ship;
            this.Alive = alive;
        }
        /// <summary>
        /// Gets or sets the ship.
        /// </summary>
        /// <value>
        /// The ship.
        /// </value>
        public Ship Ship { get; private set; }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="ShipPart"/> is alive.
        /// </summary>
        /// <value>
        ///   <c>true</c> if alive; otherwise, <c>false</c>.
        /// </value>
        public bool Alive { get; set; }
    }
}
